﻿using socialnetworkApp.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace socialnetworkApp.Domain.Dto.Output
{
    public class GetPermissionInfoOutput
    {

        public string Id { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public string Pid { get; set; }
        public string Name { get; set; }
        public string Code { get; set; }
        public string ToCode { get; set; }
        public int Type { get; set; }
        public int? Status { get; set; }
        public int Level { get; set; }
        public bool Select { get; set; }
        public List<GetPermissionInfoOutput> Children { get; set; }

        public GetPermissionInfoOutput(string id, DateTime createTime, DateTime updateTime, string pid, string name, string code, string toCode, int type, int? status, int level, bool select)
        {
            Id = id;
            CreateTime = createTime;
            UpdateTime = updateTime;
            Pid = pid;
            Name = name;
            Code = code;
            ToCode = toCode;
            Type = type;
            Status = status;
            Level = level;
            Select = select;
            Children = new List<GetPermissionInfoOutput>();
        }
    }
}
